package io.renren.modules.ProjectControl;


import io.renren.modules.ProjectControl.Service.taskService.TaskServiceP1;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/TotalFactor")
public class TotalFactorPerceptionController {

    @Autowired
    TaskServiceP1 taskServiceP1;

    @GetMapping("/device-info/list")
     public String getDeviceInfo(@RequestParam Map<String, Object> map){
        System.out.println(map);

        return taskServiceP1.getDeviceInfo(map);
    }
    @GetMapping("/device-run-data/list")
    public String getDeviceRunData(@RequestParam Map<String, Object> map){
        return taskServiceP1.getDeviceRunData(map);
    }

    @GetMapping("/device-run-data/param")
    public String getDeviceRunParam(@RequestParam Map<String, Object> map){
        return taskServiceP1.getDeviceRunParam(map);
    }
    @GetMapping("/device-run-data/details")
    public String getDeviceRundetails(@RequestParam Map<String, Object> map){
        return taskServiceP1.getDeviceRundetails(map);
    }
    @GetMapping("/material-data/list")
    public String getMaterialData(@RequestParam Map<String, Object> map){
        return taskServiceP1.getMaterialData(map);
    }
    @GetMapping("/staff-info/list")
    public String getStaffInfo(@RequestParam Map<String, Object> map){
        return taskServiceP1.getStaffInfo(map);
    }
}
